package com.changgou.service.impl;

import com.changgou.goods.feign.CategoryFeign;
import com.changgou.goods.feign.SkuFeign;
import com.changgou.goods.feign.SpuFeign;
import com.changgou.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.thymeleaf.TemplateEngine;

import java.util.Map;

/**
 * @ClassName PageServiceImpl
 * @Description
 * @Author Mr.L
 * @Date 22:09 2019/11/19
 * @Version 2.1
 **/
@Service
public class PageServiceImpl implements PageService {

    @Autowired
    private TemplateEngine templateEngine;

    @Autowired(required = false)
    private SkuFeign skuFeign;

    @Autowired(required = false)
    private SpuFeign spuFeign;

    @Autowired(required = false)
    private CategoryFeign categoryFeign;

    @Value("${pagepath}")
    private String pagepath;

    @Override
    public void createHtml(Long spuId) {
//        Map<String, Object> dataModel = getDataModel(spuId);
    }
}
